package mygame.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import java.util.List;

/**
 *
 * @author xwgou
 */
@XStreamAlias("level")
public class GameLevel {

    public GameLevel() {
    }
    
    @XStreamAlias("name")
    private String name;
    
    private List<GameNode> nodes;
    
    private List<GameLight> lights;
    
    @XStreamAlias("skyBox")
    private GameSkyBox skyBox;

    public List<GameLight> getLights() {
        return lights;
    }

    public List<GameNode> getNodes() {
        return nodes;
    }

    public GameSkyBox getSkyBox() {
        return skyBox;
    }

    public void setLights(List<GameLight> lights) {
        this.lights = lights;
    }

    public void setNodes(List<GameNode> nodes) {
        this.nodes = nodes;
    }

    public void setSkyBox(GameSkyBox skyBox) {
        this.skyBox = skyBox;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final GameLevel other = (GameLevel) obj;
        if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 71 * hash + (this.name != null ? this.name.hashCode() : 0);
        return hash;
    }
}

            
    
    

